/**
 * @author rxliuli
 */
const moIllegalMediaApi = new class MoIllegalMediaApi extends BaseApi {
    constructor() {
        super({
            url: '/api/moIllegalMedia',
            exp: true,
        })
    }

    async dealBatch(voList) {
        return (await rxajax.post(this.using('/handle-batch'), voList, {
            type: 'json',
        })).data
    }

    async dealCancelBatch(voList) {
        return (await rxajax.post(this.using('/cancel-handle-batch'), voList, {
            type: 'json',
        })).data
    }

    async setTrust(voList) {
        return (await rxajax.post(this.using('/set-trust'), voList, {
            type: 'json',
        })).data
    }

    /**
     * 警示榜表格信息
     * @returns {Promise<*>}
     */
    async warnList() {
        return (await rxajax.get(this.using('/warn-list'))).data.data
    }
}()